import React from 'react';

const Model = (props) => {
    const { title, show, children } = props

    return (
        show && <div className='model'>
            <div className="box">
                <div className="title">{title || '未设置标题'}</div>
                <div className="content">{children}</div>
                <div className="footer"></div>
            </div>
        </div>
    );
};

export default Model;